#include "progressdlg.h"
#include <QFont>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QProgressBar>
#include <QPushButton>
#include <QGridLayout>
#include <QProgressDialog>
#include <fileoperation.h>
#include "mainwindow.h"

progressdlg::progressdlg(QWidget *parent)
    : QDialog(parent)
{
    progressBar = new QProgressBar;
}
progressdlg::~progressdlg()
{
    connect(this, SIGNAL(sendPro(double)), progressBar, SLOT(startProgress(double)));
}

void progressdlg::startProgress(double progress)
{
        progressBar->setValue(progress);
        progressBar->update();
}

